
include_directories(${CUDA_INCLUDE_DIRS} ${CUDA_SDK_ROOT_DIR}/common/inc)
link_directories(${CUDA_TOOLKIT_ROOT_DIR}/lib)

cuda_compile(CUDA_SOURCES gpufilter.cu gpudefs.cu)
cuda_add_library(gpufilter timer.cpp defs.cpp ${CUDA_SOURCES})

add_executable(ex1 example_sat1.cc)
target_link_libraries(ex1 gpufilter)

cuda_add_executable(ex2 example_sat2.cc)
target_link_libraries(ex2 gpufilter)

cuda_add_executable(ex3 example_sat3.cc)
target_link_libraries(ex3 gpufilter)

add_executable(ex4 example_r1.cc)
target_link_libraries(ex4 gpufilter)

cuda_add_executable(ex5 example_r2.cc)
target_link_libraries(ex5 gpufilter)

cuda_add_executable(ex6 example_r3.cc)
target_link_libraries(ex6 gpufilter)

cuda_add_executable(ex7 example_r4.cc)
target_link_libraries(ex7 gpufilter)

cuda_add_executable(ex8 example_r5.cc)
target_link_libraries(ex8 gpufilter)

cuda_add_executable(exB example_bspline.cc)
target_link_libraries(exB gpufilter)

cuda_add_executable(exG example_gauss.cc)
target_link_libraries(exG gpufilter)

include_directories(${OpenCV_DIR})

cuda_add_executable(recursive app_recursive.cc)
target_link_libraries(recursive ${OpenCV_LIBS} gpufilter)
